import {
    Post
    // Get
} from '../../config/axiosConfig.js';
const reduxAxios = store => next => action => {
    console.log('store', store);
    
    if (action.url) {
        Post(action.url, {}).then(result => {
            next({
                type: action.type,
                data: {
                    ...result.data
                },
                params: action.params
            })
        });
    } else {
        return next(action)
    }
};

export default reduxAxios;